package com.tqjc.system.core.pipeline.thread;

import com.tqjc.system.system.entity.SysAddDetailTaskEntity;
import com.tqjc.system.system.service.SysAddDetailTaskService;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 86195
 * @version 1.0
 * @description 数据更新线程
 * @date 2023/10/19 16:08
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
public class DataUpdateThread extends Thread{

    private SysAddDetailTaskService detailTaskService;

    private SysAddDetailTaskEntity sysAddDetailTask;

    @Override
    public void run() {
        detailTaskService.updateById(sysAddDetailTask);
    }
}
